Skip to content

Initialize ChromeClient timeout with default Capybara timeout#85

Open
francisbeaudoin wants to merge 1 commit into
twalpole:masterfrom
Shopify:fix-timeout-issue
Open

Initialize ChromeClient timeout with default Capybara timeout#85
francisbeaudoin wants to merge 1 commit into
twalpole:masterfrom
Shopify:fix-timeout-issue

Conversation

@francisbeaudoin
Copy link
Copy Markdown

When using session.visit(), if the page includes indefinitely running Javascript, apparition hangs and never timeouts.

To reproduce the issue, create an HTML page having the following code and session.visit it:

<script>
	while(true) { }
</script>

Observe apparition hanging indefinitely.

To fix the problem, I'm initializing the ChromeClient with the session_wait_time value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant